package br.ufmg.vod.wbr;

import java.io.IOException;
import java.util.Properties;

public class Props {

	public static Properties props;
	public static String inLinkIdx, inLink, outLinkIdx, outLink, docDistribution, collectionsPath;
	public static boolean sample;
	public static int sampleSize;
	static{
		try {
			props = new Properties();
			props.load(ClassLoader.getSystemResourceAsStream("collection.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
		collectionsPath = props.getProperty("collection.path");
		inLinkIdx = props.getProperty("collection.path")+props.getProperty("inlinks.idx");
		inLink = props.getProperty("collection.path")+props.getProperty("inlinks");
		outLinkIdx = props.getProperty("collection.path")+props.getProperty("outlinks.idx");
		outLink = props.getProperty("collection.path")+props.getProperty("outlinks");
		docDistribution = props.getProperty("collection.path")+props.getProperty("docDistribution");
		sample = Boolean.valueOf(props.getProperty("sample"));
		sampleSize = Integer.valueOf(props.getProperty("sample.size"));
		System.out.println(props);
	}

}
